package org.zoomdev.zoom.web.test;

import java.io.ByteArrayOutputStream;
import java.io.IOException;

public class OutputStreamImpl {
    private final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

    public byte[] bytes() {
        return outputStream.toByteArray();
    }

    public void write(int b) throws IOException {
        outputStream.write(b);
    }

    public void clear(){

    }

    public void write(byte[] b) throws IOException {
        outputStream.write(b);
    }


    public void write(byte[] b, int off, int len) throws IOException {
        outputStream.write(b, off, len);
    }
}
